package com.wr.modules.file.domain.sys.file;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author MyPC
 */
@Data
@Schema(description = "文件上传响应实体")
public class SysFileVo {

    @Schema(description = "文件id")
    private String fileId;

    @Schema(description = "文件类型")
    private String fileType;

    @Schema(description = "上传类型")
    private String uploadType;

    @Schema(description = "文件上传名称")
    private String oldName;

    @Schema(description = "文件返回名称")
    private String newName;

    @Schema(description = "文件后缀")
    private String fileSuffix;

    @Schema(description = "文件相对路径（服务器路径）")
    private String relativePath;

    @Schema(description = "文件绝对路径（硬件路径）")
    private String absolutePath;

    @Schema(description = "上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    @Schema(description = "备注")
    private String remark;
}
